home *** CD-ROM | disk | FTP | other *** search
/ Ray Dream Studio 5 / Ray Dream.iso / pc / DreamSDK / Windows / SAMPLES / DEFORMER / DEFS / XCOMDEFS.R < prev    next >
Encoding:
Text File  |  1997-07-10  |  3.1 KB  |  164 lines

  1. // Copyright (c)1995 Ray Dream, Inc. All Rights Reserved.
  2. /* $Id: XComDefS.r 1.2 1997/07/11 06:54:23 damien Exp $ */
  3.  
  4. #define NOFLAG 0L
  5. #define INTERPOLATE 1L
  6.  
  7. #define MINQF16 0xFFFF8000L
  8. #define MAXQF16 0x00007FFFL
  9. #define MINQFIX 0xFFFF8000L
  10. #define MAXQFIX 0x00007FFFL
  11.  
  12. 140 COMP DISCARDABLE
  13. BEGIN
  14.     "defo",           // family ID
  15.     "COdf",          // unique creator
  16.     "Non Uniform Scaling\0",            // name of the extension
  17.     "COM Examples\0",  // sub family (used for shaders and scene operations)
  18.     "4.0.0\0",        // version number
  19.     "Toolkit COM Example\0", // comments
  20.     0x0009L           // minimum API version number required
  21. END
  22.  
  23. 140 PMAP DISCARDABLE 
  24. BEGIN
  25.     //  structure of a PMAP entry:
  26.     //"4lID","type",INTERPOLATE or NOFLAG,"Description\0",minValue,maxValue
  27.     //  ex:
  28.     //"COLO","colo",INTERPOLATE,"Color\0",0L,0L,
  29.     //"ZMIN","qf16",INTERPOLATE,"Min Altitude\0",MINQF16,MAXQF16,
  30.     //"ZMAX","qf16",INTERPOLATE,"Max Altitude\0",MINQF16,MAXQF16,
  31.     //"VISI","qf16",INTERPOLATE,"Visibility\0",0L,MAXQF16
  32.     0x0007, // number of entries, increment it when you add an entry
  33.     "AXIS","long",NOFLAG,"Axis\0",MINQF16,MAXQF16,
  34.     "UBEG","qfix",INTERPOLATE,"U Begin Scale\0",MINQF16,MAXQF16
  35.     "UEND","qfix",INTERPOLATE,"U End Scale\0",MINQF16,MAXQF16
  36.     "VBEG","qfix",INTERPOLATE,"V Begin Scale\0",MINQF16,MAXQF16
  37.     "VEND","qfix",INTERPOLATE,"V End Scale\0",MINQF16,MAXQF16
  38.     "bmin","qfv3",NOFLAG,"\0",MINQF16,MAXQF16
  39.     "bmax","qfv3",NOFLAG,"\0",MINQF16,MAXQF16
  40. END
  41.  
  42. 140 GUID DISCARDABLE 
  43. BEGIN
  44. // from    a GUID in a DTA $"ABCD EFGH IJKL MNOP QRST UVWX YZ12 3456"
  45. // change to 0xEFGH, 0xABCD, 0xIJKL, 0xMNOP, 0xSTQR, 0xWXUV, 0x12YZ, 0x5634
  46.   0x5ef0, 0x1ec1, 0xc1a1, 0x11d0, 0x4785, 0xa000, 0x0cc9, 0xf11b
  47.     0xD081, 0x8DC8, 0xEDB3, 0x11CE, 0xF7A4, 0x0000, 0x02E2, 0xA5D5
  48. END
  49.  
  50. 140 XPVW DISCARDABLE
  51. BEGIN
  52.   //  VIEW resource: no null character allowed !!!
  53. "\043 laminated fog view
  54. View {
  55.  PosX 0
  56.  PosY 0
  57.  SizX 200
  58.  SizY 264
  59.  VwId EDIT
  60.  Clus {
  61.   PosX 5
  62.     PosY 5
  63.     SizX 190
  64.     SizY 80
  65.     Capt \042Axis\042
  66.     VwId AXIS
  67.     Radi {
  68.      PosX 10
  69.      PosY 20
  70.      SizX 100
  71.      SizY 16
  72.      Capt \042&X - axis\042
  73.      VwId AXEX
  74.      }
  75.     Radi {
  76.      PosX 10
  77.      PosY 40
  78.      SizX 100
  79.      SizY 16
  80.      Capt \042&Y - axis\042
  81.      VwId AXEY
  82.      }
  83.     Radi {
  84.      PosX 10
  85.      PosY 60
  86.      SizX 100
  87.      SizY 16
  88.      Capt \042&Z - axis\042
  89.      VwId AXEZ
  90.      }
  91.     }
  92.  Stat {
  93.   PosX 5
  94.   PosY 90
  95.   SizX 75
  96.   SizY 16
  97.     Capt \042U Begin Scale\042
  98.     }
  99.  Slid {
  100.   PosX 80
  101.     PosY 90
  102.     SizX 110
  103.     SizY 20
  104.     User 2002
  105.     MinV 0
  106.     MaxV 655360
  107.     VwId UBEG
  108.   }
  109.  Stat {
  110.   PosX 5
  111.   PosY 115
  112.   SizX 75
  113.   SizY 16
  114.     Capt \042U End Scale\042
  115.     }
  116.  Slid {
  117.   PosX 80
  118.     PosY 115
  119.     SizX 110
  120.     SizY 20
  121.     User 2002
  122.     MinV 0
  123.     MaxV 655360
  124.     VwId UEND
  125.   }
  126.  Stat {
  127.   PosX 5
  128.   PosY 140
  129.   SizX 75
  130.   SizY 16
  131.     Capt \042V Begin Scale\042
  132.     }
  133.  Slid {
  134.   PosX 80
  135.     PosY 140
  136.     SizX 110
  137.     SizY 20
  138.     User 2002
  139.     MinV 0
  140.     MaxV 655360
  141.     VwId VBEG
  142.   }
  143.  Stat {
  144.   PosX 5
  145.   PosY 165
  146.   SizX 75
  147.   SizY 16
  148.     Capt \042V End Scale\042
  149.     }
  150.  Slid {
  151.   PosX 80
  152.     PosY 165
  153.     SizX 110
  154.     SizY 20
  155.     User 2002
  156.     MinV 0
  157.     MaxV 655360
  158.     VwId VEND
  159.   }
  160.  }
  161. \0"
  162. END
  163.  
  164.